﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;

using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
       
        public Form1 ()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            BlackBox.airTempFract = Convert.ToByte(textBox2.Text);
            BlackBox.airTempWhole = Convert.ToByte(textBox1.Text);
            BlackBox.soilMoisture = Convert.ToByte(textBox3.Text);

            if (checkBox1.Checked)
            {
                BlackBox.waterStatus = 1;
            }
            else BlackBox.waterStatus = 0;
            if (checkBox2.Checked)
            {
                BlackBox.signedBit = 1;
            } else BlackBox.signedBit = 0;

        }

        private void button2_Click(object sender, EventArgs e)
        {
            TalkServ t = new TalkServ();
            button2.Enabled = false;
        }

    }
}
